<script language="javascript" type="text/javascript" src="/Inc/AspBox/jsLib/mootools.js"></script>

<div id="content" style="background-color:#DFFFDD;">
<div id="divKengen">
	<h2>加密</h2>
	<div id="output"></div>
	<div>请输入密钥</div>
	<div>
		<span><input type="text" id="txtKey" /></span>
	</div>
	<div>请输入您要原字符串数据</div>
	<div>
		<span><textarea id="txtMessage" cols=40 rows=6></textarea></span>
		<span>--<input type="button" id="btnEncrypt" value="解密" />--></span>
		<span><textarea id="txtDecryptedMessage" cols=40 rows=6></textarea></span>
	</div>
</div>
</div>

<script language="javascript" type="text/javascript">
<!--
$("btnEncrypt").addEvent("click",function(){
	var txtKey = $("txtKey").value.trim();
	var msg = $("txtMessage").value.trim();
	if ( txtKey == "" || msg == "" ){
		alert ("请输入密钥和数据!");
	}
	else{
		$("txtDecryptedMessage").set('html', '这里显示加密后字符串');
	}
});
-->
</script>